package xinyou.jh.net.title
{
	import xinyou.net.BaseStruct;
	
	public class TitleStruct extends BaseStruct
	{
		
		/*
		*
		101
		
		CG_CHARINFO_TITLES_ALL_CMD						= 22,				// --称号推送
		CG_CHARINFO_TITLES_ADD_CMD						= 23,				// --称号增加推送
		CG_CHARINFO_TITLES_SETDEFAULT_SYN		= 24,				// --设置称号
		CG_CHARINFO_TITLES_SETDEFAULT_BRD		= 25,				// --广播称号
				
		*/
		
		
		public function TitleStruct()
		{
			super();
		}
		
		override protected function initReceiverHash():void
		{
			addReceiverHash([101,22],CG_CHARINFO_TITLES_ALL_CMD);// --称号推送
			addReceiverHash([101,23],CG_CHARINFO_TITLES_ADD_CMD);// --称号增加推送
			addReceiverHash([101,25],CG_CHARINFO_TITLES_SETDEFAULT_BRD);// --广播称号
		}
		
		override protected function initSenderHash():void
		{
			addReceiverHash([101,24],CG_CHARINFO_TITLES_SETDEFAULT_SYN);//-- 设置称号
			
		}
		
		
		//--------sender-----------------------
		public var CG_CHARINFO_TITLES_SETDEFAULT_SYN:XML =
			<struct>
					DWORD			m_dwIndex;
			</struct>;
		
		//-------------------------------
		
		//--------receiver-----------------------
		public var CG_CHARINFO_TITLES_ALL_CMD:XML =
			<struct>
					STRUCT	TITLES_TOTAL_INFO;
			</struct>;
		
		public var CG_CHARINFO_TITLES_ADD_CMD:XML =
			<struct>
					DWORD	m_dwIndex;//TITLE_ID 
			</struct>;
		
		public var CG_CHARINFO_TITLES_SETDEFAULT_BRD:XML =
			<struct>
					TITLES_TOTAL_INFO m_TotalTitles;
			</struct>;
		
		//-------------------------------
		public var TITLES_TOTAL_INFO:XML =
			<struct>
					Array 	DWORD	m_arrTitleIDs[WORD];
			</struct>;
		
		
		
		
	}
}